﻿#ifndef DECRYPTION_H
#define DECRYPTION_H

#include <QObject>
#include <QDebug>
#include <QString>
#include <QTime>

class Decryption : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString en_Result READ en_Result WRITE setEn_Result NOTIFY en_ResultChanged FINAL)

public:
    explicit Decryption(QObject *parent = nullptr);

    Q_INVOKABLE void createDecryptionCode(QString year, QString month, QString day, QString hour, QString minute,
                                     QString order, QString custom);

    QString en_Result() const;
    void setEn_Result(const QString &newEn_Result);

signals:
    void en_ResultChanged();
private:
    QString m_en_Result;
};

#endif // DECRYPTION_H
